export default {
  inserted(element, binding) {
    element.onerror = function() {
      element.src = binding.value
    }
    element.src = element.src || binding.value
  },
  componentUpdated(element, binding) {
    element.onerror = function() {
      element.src = binding.value
    }
    element.src = element.src || binding.value
  }
}
